package cn.huiyunche.base.service.query;

import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.Min;
import java.math.BigDecimal;

/**
 * @FileName: cn.huiyunche.base.service.query
 * @Description: 车型类型查询条件
 * @author: Aaron
 * @date: 2017/2/27 上午10:11
 */
public class BVehicleTypeQueryConditions {

    //类型编码
    private String typeCode;

    //类型名称
    private String typeName;

    //驾照类型
    private String licenseType;

    //燃油类型主键
    @Min(value = 1, message = "请选择燃油类型")
    private Integer fuelTypeId;

    //百公里油耗
    @DecimalMin(value = "0.01", message = "百公里油耗不能小于0.01元")
    private BigDecimal fuelConsumption;

    public String getTypeCode() {
        return typeCode;
    }

    public void setTypeCode(String typeCode) {
        this.typeCode = typeCode;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public String getLicenseType() {
        return licenseType;
    }

    public void setLicenseType(String licenseType) {
        this.licenseType = licenseType;
    }

    public Integer getFuelTypeId() {
        return fuelTypeId;
    }

    public void setFuelTypeId(Integer fuelTypeId) {
        this.fuelTypeId = fuelTypeId;
    }

    public BigDecimal getFuelConsumption() {
        return fuelConsumption;
    }

    public void setFuelConsumption(BigDecimal fuelConsumption) {
        this.fuelConsumption = fuelConsumption;
    }

    @Override
    public String toString() {
        return "BVehicleTypeQueryConditions{" +
                "typeCode='" + typeCode + '\'' +
                ", typeName='" + typeName + '\'' +
                ", licenseType='" + licenseType + '\'' +
                ", fuelTypeId=" + fuelTypeId +
                ", fuelConsumption=" + fuelConsumption +
                '}';
    }
}
